<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>查找</title>
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.4/lib/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.4/lib/index.css">

  <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
  <link rel="stylesheet" href="/css/global.css">
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vant@2.4/lib/vant.min.js"></script>
  <!--    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>-->
  <script src="https://cdn.bootcss.com/qs/6.5.2/qs.min.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.19.2/axios.js"></script>
</head>
<body>
<div class="bg"></div>
<div id="app">
  <van-row>
    <van-col span="24">
      <van-nav-bar
        title="查找"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
      />
    </van-col>
    <van-col span="24">
      <div class="d-flex">
        <div class="w-100">
          <van-search v-model="value" placeholder="请输入搜索关键词"/>
        </div>
        <div class="flex-grow-shrink mr-4">
          <van-dropdown-menu>
            <van-dropdown-item v-model="value1" :options="option1"/>
          </van-dropdown-menu>
        </div>
      </div>
    </van-col>
    <van-col span="24">
      <div class="box m-4 pl-3 pr-3 pb-3">
        <ul class="breakfast-list">
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="100px"
                height="100px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold">仰卧起坐</p>
              <p class="size1 color-ash">难度：H3</p>
              <p class="size1 color-ash mt-2 text-ellipsis-2">Nunc a sagittis elit, eget vehicula ligula. Etiam
                consequat tristique metus,</p>
            </div>
            <van-button class="flex-grow-shrink" plain type="primary" @click="showPopup">选择</van-button>
          </li>
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="100px"
                height="100px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>

            <div class="w-100 pl-3 pr-3" style="overflow: hidden">
              <p class="size3 bold">一组跑步训练</p>
              <p class="size1 color-ash">难度：H3</p>
              <p class="size1 color-lesser">1.长跑：300km</p>
              <p class="size1 color-lesser">2.短跑：300km</p>
              <p class="size1 color-ash mt-1 text-ellipsis">Nunc a sagittis elit, eget vehicula ligula. Etiam consequat
                tristique metus,</p>
            </div>
            <van-button class="flex-grow-shrink" plain type="primary" @click="showPopup2">选择</van-button>
          </li>
        </ul>
      </div>
    </van-col>
  </van-row>
  <van-row>
    <van-col span="24">
      <div style="height: 80px;"></div>
      <div class="fixed-bottom p-2 bg-white d-flex" style="box-sizing: border-box">
        <div class="w-100 pr-2">
          <van-button square color="linear-gradient(to right, #ffa64b, #f65649)" block>添加自定义饮食</van-button>
        </div>
        <div class="w-100 pl-2">
          <van-button square color="linear-gradient(to right, #4bb0ff, #6149f6)" block>添加自定义套餐</van-button>
        </div>
      </div>
    </van-col>
  </van-row>
  <van-row>
    <van-col span="24">
      <van-popup
        v-model="show"
        closeable
        position="bottom"
        :style="{ height: '60%' }"
      >
        <ul class="breakfast-list" style="margin: 50px 20px 20px 20px">
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="100"
                height="100"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3" style="overflow: hidden">
              <p class="size3 bold">仰卧起坐</p>
              <p class="size1 mt-2 text-ellipsis">Pellentesque quam est, auctor</p>
              <p class="size1 mt-2 d-flex align-items-center">
                <van-icon name="star-o"></van-icon>
                <span class="ml-2">收藏</span>
              </p>
            </div>
          </li>
        </ul>
        <div class="m-5">
          <p class="color-main size3 mb-2">点做要点：</p>
          <p class="border size2 p-3">这样欧老师的囧临时冻结无色地咯傲视的日记看咯华为的风口蓝色的发挥iOS的</p>
        </div>
        <div class="m-5">
          <p class="color-main size3 mb-2">教学视频：</p>
          <van-image
            width="100%"
            fit="cover"
            src="https://img.yzcdn.cn/vant/cat.jpeg"
          ></van-image>
        </div>
        <div class="m-5 size2">
          <span>数量：</span>
          <select class="p-1 ml-2">
            <option>条目一</option>
            <option>条目二</option>
            <option>条目三</option>
          </select>
          <span class="ml-5">每单位消耗</span>
          <select class="p-1 ml-2">
            <option>条目一</option>
            <option>条目二</option>
            <option>条目三</option>
          </select>
        </div>
      </van-popup>
    </van-col>
    <van-col span="24">
      <van-popup
        v-model="show2"
        closeable
        position="bottom"
        :style="{ height: '60%' }"
      >
        <div style="height: 30px"></div>
        <div class="m-5">
          <van-image
            width="100%"
            fit="cover"
            src="https://img.yzcdn.cn/vant/cat.jpeg"
          ></van-image>
          <p class="size4 mb-2 bold mt-2">套餐名称</p>
          <p class="size1 color-ash">描述Proin luctus semper lobortis. Nunc efficitur ipsum a nisl euismod porttitor.
            Phasellus ac imperdiet odio. Proin commodo mattis justo</p>
        </div>
        <div class="m-5">
          <p class="color-main size3 mb-2">动作顺序：</p>
          <div class="d-flex bg-f9 p-2 size2 mb-2">
            <span class="flex-grow-shrink mr-4">1</span>
            <span class="w-100 mr-2">代理收费</span>
            <span class="flex-grow-shrink mr-4">跑100km</span>
            <span class="flex-grow-shrink">消耗100千卡</span>
          </div>
          <div class="d-flex bg-f9 p-2 size2 mb-2">
            <span class="flex-grow-shrink mr-4">1</span>
            <span class="w-100 mr-2">代理收费</span>
            <span class="flex-grow-shrink mr-4">跑100km</span>
            <span class="flex-grow-shrink">消耗100千卡</span>
          </div>
          <div class="d-flex bg-f9 p-2 size2 mb-2">
            <span class="flex-grow-shrink mr-4">1</span>
            <span class="w-100 mr-2">代理收费</span>
            <span class="flex-grow-shrink mr-4">跑100km</span>
            <span class="flex-grow-shrink">消耗100千卡</span>
          </div>
        </div>
      </van-popup>
    </van-col>
  </van-row>

</div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        value: '',
        value1: 0,
        option1: [
          {text: '收藏的食物', value: 0},
          {text: '收藏的套餐', value: 1},
          {text: '我自定义的食物', value: 2},
          {text: '我自定义的套餐', value: 3},
        ],
        show: false,
        show2: false,
        checked: true,
        digit: ''
      };
    },
    methods: {
      onClickLeft() {
        Toast('返回');
      },
      showPopup() {
        this.show = true;
      },
      showPopup2() {
        this.show2 = true;
      },
    },
  });
</script>
</html>
